<%-- 
    Document   : completprofile2
    Created on : Oct 12, 2013, 1:26:17 PM
    Author     : yoko
--%>

<%@page import="org.apt.matrimony.beans.LikingModelBeans"%>
<%@page import="org.apt.matrimony.beans.LikingCateBeans"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <link href="css/expiredmsg.css" rel="stylesheet" type="text/css" />
    <link href="css/ui.css" rel="stylesheet" type="ttext/css"/>
    <script type="text/javascript" src="js/ValidateLive.js"></script>
    <script language="JavaScript" type="text/javascript">

        $(document).ready(function(){
            $('.close').click()(function(){
                $('.overlay, .content').fadeOut('slow');
            })
        })
    </script>
    <script language="javascript" type="text/javascript">
        function message(){
            alert("Please Complete Your Profiles in order to gain all Benefits from website");
        }
    </script>
    <body onload="message()">
        <jsp:useBean id="list" scope="session" class="org.apt.matrimony.methods.selects"></jsp:useBean>
            <div id="overlay" class="overlay"></div>
            <div id="modal" class="modal">
                <div id="login" class="content">
                    <div class="roundedBorders login-box">
                        <!-- Title -->
                        <div id="title" class="b2">
                            <h2>Complete Profiles</h2>
                            <!-- TitleActions -->

                            <!-- /TitleActions -->
                        </div>
                        <!-- Title -->

                        <!-- Inner Content -->
                        <div id="innerContent">
                            <form action="doComleteLiking" method="post" name="frm">
                                <fieldset>
                                    <legend>Personal Interests</legend>
                                    <table>
                                        <tr class="hline2">
                                            <td >&nbsp;</td>
                                            <td colspan="3" align="right" ><font color="red">* All fields are mandatory</font> </td>
                                        </tr>
                                    <%
                                        List<LikingCateBeans> cateList = list.selectAllLlikingCates();
                                        for (int i = 0; i < cateList.size(); i++) {
                                    %>


                                    <tr class="hline2">
                                        <td ><div align="left" style="width: 70px; color: #00ae31;"><%= cateList.get(i).getLiking_Name()%> :</div></td>
                                        <td colspan="2" ><div align="left">
                                                <table>
                                                    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td</tr>
                                                    <tr><td>
                                                            <% List<LikingModelBeans> modelList = list.selectAllLlikingModelById(cateList.get(i).getLiking_Id());
                                                                for (int j = 0; j < modelList.size(); j++) {
                                                            %>
                                                            <div style="width:160px; float: left" >   
                                                                <input name="selectBox" type="checkbox"  value="<%=modelList.get(j).getLiking__Model_Id()%>" />&nbsp;&nbsp;&nbsp;&nbsp;<%=modelList.get(j).getLiking__Model_Id()%>
                                                            </div>
                                                            <%}%></td>
                                                    </tr>
                                                    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td</tr>
                                                </table>                          
                                            </div></td>
                                    </tr>
                                    <%}%>
                                    <div> <input type="text" name="username" value="<%=request.getParameter("username")%>"></div>
                                    <tr>
                                        <td colspan="3">
                                            <div class="clearfix login-submit">
                                                <span class="fright">
                                                    <button class="button" type="reset"><strong>Clear</strong></button>
                                                    <button class="button" type="submit"><strong>Register</strong></button>
                                                </span>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                        </form>
                    </div>
                    <!-- /Inner Content -->
                    <div class="bBottom"><div></div></div>
                </div>
            </div>
            <jsp:include page="index.jsp"></jsp:include>
        </div>
    </body>
</html>
